
package com.jf.cloud.supplier.controller.supplier;

import com.jf.cloud.api.supplier.vo.SupplierApiRefundAddrVO;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.common.security.AuthUserContext;
import com.jf.cloud.supplier.service.SupplierRefundAddrService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 退货地址
 *
 * @author zz
 * @date 2021-01-27 09:10:00
 */
@RestController("supplierRefundAddrController")
@RequestMapping("/s/supplier_refund_addr")
@Tag(name = "supplier-供应商店铺退货地址")
public class SupplierRefundAddrController {

    @Autowired
    private SupplierRefundAddrService supplierRefundAddrService;

    @GetMapping("/list")
    @Operation(summary = "获取退货地址列表" , description = "获取退货地址列表")
    public ServerResponseEntity<List<SupplierApiRefundAddrVO>> list() {
        return ServerResponseEntity.success(supplierRefundAddrService.listBySupplierId(AuthUserContext.get().getTenantId()));
    }
}
